home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 051-075 / scopedisk55 / sfont33 / sfstructs.c < prev    next >
C/C++ Source or Header  |  1995-03-19  |  28KB  |  863 lines

  1. #include "intuition/intuition.h"
  2.  
  3. /****************************************************/
  4. /* Most of the structures in this file were created */
  5. /*          with PowerWindows 2.5, by:        */
  6. /* Inovatronics, Inc.                    */
  7. /* 11311 Stemmons Freeway                */
  8. /* Dallas, TX  75229                    */
  9. /* (214) 241-9515                                   */
  10. /****************************************************/
  11.  
  12. struct NewScreen newscreen = {
  13.     0,0,    /* screen XY origin relative to View */
  14.     640,200,    /* screen width and height */
  15.     2,    /* screen depth (number of bitplanes) */
  16.     0,1,    /* detail and block pens */
  17.     HIRES,    /* display modes for this screen */
  18.     CUSTOMSCREEN,    /* screen type */
  19.     NULL,    /* pointer to default screen font */
  20.     "ShowFont 3.3 by Arthur Johnson Jr.",   /* screen title */
  21.     NULL,    /* first in list of custom screen gadgets */
  22.     NULL    /* pointer to custom BitMap structure */
  23. };
  24.  
  25. struct PropInfo W_PropSInfo = {
  26.     AUTOKNOB+FREEVERT,    /* PropInfo flags */
  27.     -1,-1,    /* horizontal and vertical pot values */
  28.     -1,-1,    /* horizontal and vertical body values */
  29. };
  30.  
  31. struct Image Image1 = {
  32.     0,0,    /* XY origin relative to container TopLeft */
  33.     8,167,    /* Image width and height in pixels */
  34.     0,    /* number of bitplanes in Image */
  35.     NULL,    /* pointer to ImageData */
  36.     0x0000,0x0000,    /* PlanePick and PlaneOnOff */
  37.     NULL    /* next Image structure */
  38. };
  39.  
  40. struct Gadget W_Prop = {
  41.     NULL,    /* next gadget */
  42.     -18,19, /* origin XY of hit box relative to window TopLeft */
  43.     16,-29, /* hit box width and height */
  44.     GRELRIGHT+GRELHEIGHT+GADGHNONE,   /* gadget flags */
  45.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  46.     PROPGADGET,    /* gadget type flags */
  47.     (APTR)&Image1,  /* gadget border or image to be rendered */
  48.     NULL,    /* alternate imagery for selection */
  49.     NULL,    /* first IntuiText structure */
  50.     NULL,    /* gadget mutual-exclude long word */
  51.     (APTR)&W_PropSInfo,     /* SpecialInfo structure */
  52.     2,    /* user-definable data */
  53.     NULL    /* pointer to user-definable data */
  54. };
  55.  
  56. USHORT GadgetDownData[] = {
  57.     0xFFFF,0x8001,0x8181,0x8181,0x87E1,0x83C1,0x8181,0x8001,
  58.     0xFFFF
  59. };
  60.  
  61. struct Image GadgetDown = {
  62.     0,0,    /* XY origin relative to container TopLeft */
  63.     16,9,    /* Image width and height in pixels */
  64.     2,    /* number of bitplanes in Image */
  65.     GadgetDownData,     /* pointer to ImageData */
  66.     0x0001,0x0000,    /* PlanePick and PlaneOnOff */
  67.     NULL    /* next Image structure */
  68. };
  69.  
  70. struct Gadget W_Down = {
  71.     &W_Prop,    /* next gadget */
  72.     -18,-9, /* origin XY of hit box relative to window TopLeft */
  73.     18,9,    /* hit box width and height */
  74.     GADGIMAGE+GRELBOTTOM+GRELRIGHT+GADGHNONE, /* gadget flags */
  75.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  76.     BOOLGADGET,    /* gadget type flags */
  77.     (APTR)&GadgetDown,  /* gadget border or image to be rendered */
  78.     NULL,    /* alternate imagery for selection */
  79.     NULL,    /* first IntuiText structure */
  80.     NULL,    /* gadget mutual-exclude long word */
  81.     NULL,    /* SpecialInfo structure */
  82.     3,    /* user-definable data */
  83.     NULL    /* pointer to user-definable data */
  84. };
  85.  
  86. USHORT GadgetUpData[] = {
  87.     0xFFFF,0x8001,0x8181,0x83C1,0x87E1,0x8181,0x8181,0x8001,
  88.     0xFFFF
  89. };
  90.  
  91. struct Image GadgetUp = {
  92.     0,0,    /* XY origin relative to container TopLeft */
  93.     16,9,    /* Image width and height in pixels */
  94.     2,    /* number of bitplanes in Image */
  95.     GadgetUpData,      /* pointer to ImageData */
  96.     0x0001,0x0000,    /* PlanePick and PlaneOnOff */
  97.     NULL    /* next Image structure */
  98. };
  99.  
  100. struct Gadget W_Up = {
  101.     &W_Down,    /* next gadget */
  102.     -18,10, /* origin XY of hit box relative to window TopLeft */
  103.     18,9,    /* hit box width and height */
  104.     GADGIMAGE+GRELRIGHT+GADGHNONE,      /* gadget flags */
  105.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  106.     BOOLGADGET,    /* gadget type flags */
  107.     (APTR)&GadgetUp,  /* gadget border or image to be rendered */
  108.     NULL,    /* alternate imagery for selection */
  109.     NULL,    /* first IntuiText structure */
  110.     NULL,    /* gadget mutual-exclude long word */
  111.     NULL,    /* SpecialInfo structure */
  112.     1,    /* user-definable data */
  113.     NULL    /* pointer to user-definable data */
  114. };
  115.  
  116. #define GadgetList1 W_Up
  117.  
  118. struct IntuiText IText1 = {
  119.     3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  120.     19,0,    /* XY origin relative to container TopLeft */
  121.     NULL,    /* font pointer or NULL for default */
  122.     "640 x 400",    /* pointer to text */
  123.     NULL    /* next IntuiText structure */
  124. };
  125.  
  126. struct MenuItem MenuItem4 = {
  127.     NULL,    /* next MenuItem structure */
  128.     0,24,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  129.     91,8,    /* hit box width and height */
  130.     CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  131.     7,    /* each bit mutually-excludes a same-level Item */
  132.     (APTR)&IText1,  /* Item render  (IntuiText or Image or NULL) */
  133.     NULL,    /* Select render */
  134.     NULL,    /* alternate command-key */
  135.     NULL,    /* SubItem list */
  136.     MENUNULL    /* filled in by Intuition for drag selections */
  137. };
  138.  
  139. struct IntuiText IText2 = {
  140.     3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  141.     19,0,    /* XY origin relative to container TopLeft */
  142.     NULL,    /* font pointer or NULL for default */
  143.     "640 x 200",    /* pointer to text */
  144.     NULL    /* next IntuiText structure */
  145. };
  146.  
  147. struct MenuItem MenuItem3 = {
  148.     &MenuItem4,    /* next MenuItem structure */
  149.     0,16,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  150.     91,8,    /* hit box width and height */
  151.     CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP+CHECKED,    /* Item flags */
  152.     11,    /* each bit mutually-excludes a same-level Item */
  153.     (APTR)&IText2,  /* Item render  (IntuiText or Image or NULL) */
  154.     NULL,    /* Select render */
  155.     NULL,    /* alternate command-key */
  156.     NULL,    /* SubItem list */
  157.     MENUNULL    /* filled in by Intuition for drag selections */
  158. };
  159.  
  160. struct IntuiText IText3 = {
  161.     3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  162.     19,0,    /* XY origin relative to container TopLeft */
  163.     NULL,    /* font pointer or NULL for default */
  164.     "320 x 400",    /* pointer to text */
  165.     NULL    /* next IntuiText structure */
  166. };
  167.  
  168. struct MenuItem MenuItem2 = {
  169.     &MenuItem3,    /* next MenuItem structure */
  170.     0,8,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  171.     91,8,    /* hit box width and height */
  172.     CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  173.     13,    /* each bit mutually-excludes a same-level Item */
  174.     (APTR)&IText3,  /* Item render  (IntuiText or Image or NULL) */
  175.     NULL,    /* Select render */
  176.     NULL,    /* alternate command-key */
  177.     NULL,    /* SubItem list */
  178.     MENUNULL    /* filled in by Intuition for drag selections */
  179. };
  180.  
  181. struct IntuiText IText4 = {
  182.     3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  183.     19,0,    /* XY origin relative to container TopLeft */
  184.     NULL,    /* font pointer or NULL for default */
  185.     "320 x 200",    /* pointer to text */
  186.     NULL    /* next IntuiText structure */
  187. };
  188.  
  189. struct MenuItem MenuItem1 = {
  190.     &MenuItem2,    /* next MenuItem structure */
  191.     0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  192.     91,8,    /* hit box width and height */
  193.     CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  194.     14,    /* each bit mutually-excludes a same-level Item */
  195.     (APTR)&IText4,  /* Item render  (IntuiText or Image or NULL) */
  196.     NULL,    /* Select render */
  197.     NULL,    /* alternate command-key */
  198.     NULL,    /* SubItem list */
  199.     MENUNULL    /* filled in by Intuition for drag selections */
  200. };
  201.  
  202. struct Menu Menu3 = {
  203.     NULL,    /* next Menu structure */
  204.     124,0,    /* XY origin of Menu hit box relative to screen TopLeft */
  205.     55,0,    /* Menu hit box width and height */
  206.     MENUENABLED,    /* Menu flags */
  207.     "Screen",       /* text of Menu name */
  208.     &MenuItem1    /* MenuItem linked list pointer */
  209. };
  210.  
  211. struct IntuiText IText5 = {
  212.     3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  213.     0,0,    /* XY origin relative to container TopLeft */
  214.     NULL,    /* font pointer or NULL for default */
  215.     "Font Selection",       /* pointer to text */
  216.     NULL    /* next IntuiText structure */
  217. };
  218.  
  219. struct MenuItem MenuItem5 = {
  220.     NULL,    /* next MenuItem structure */
  221.     0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  222.     152,8,    /* hit box width and height */
  223.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,        /* Item flags */
  224.     0,    /* each bit mutually-excludes a same-level Item */
  225.     (APTR)&IText5,  /* Item render  (IntuiText or Image or NULL) */
  226.     NULL,    /* Select render */
  227.     'F',    /* alternate command-key */
  228.     NULL,    /* SubItem list */
  229.     MENUNULL    /* filled in by Intuition for drag selections */
  230. };
  231.  
  232. struct Menu Menu2 = {
  233.     &Menu3, /* next Menu structure */
  234.     70,0,    /* XY origin of Menu hit box relative to screen TopLeft */
  235.     47,0,    /* Menu hit box width and height */
  236.     MENUENABLED,    /* Menu flags */
  237.     "Fonts",        /* text of Menu name */
  238.     &MenuItem5    /* MenuItem linked list pointer */
  239. };
  240.  
  241. struct IntuiText IText6 = {
  242.     3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  243.     0,0,    /* XY origin relative to container TopLeft */
  244.     NULL,    /* font pointer or NULL for default */
  245.     "Quit", /* pointer to text */
  246.     NULL    /* next IntuiText structure */
  247. };
  248.  
  249. struct MenuItem MenuItem7 = {
  250.     NULL,    /* next MenuItem structure */
  251.     0,8,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  252.     80,8,    /* hit box width and height */
  253.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  254.     0,    /* each bit mutually-excludes a same-level Item */
  255.     (APTR)&IText6,  /* Item render  (IntuiText or Image or NULL) */
  256.     NULL,    /* Select render */
  257.     'Q',    /* alternate command-key */
  258.     NULL,    /* SubItem list */
  259.     MENUNULL    /* filled in by Intuition for drag selections */
  260. };
  261.  
  262. struct IntuiText IText7 = {
  263.     3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  264.     0,0,    /* XY origin relative to container TopLeft */
  265.     NULL,    /* font pointer or NULL for default */
  266.     "About",        /* pointer to text */
  267.     NULL    /* next IntuiText structure */
  268. };
  269.  
  270. struct MenuItem MenuItem6 = {
  271.     &MenuItem7,    /* next MenuItem structure */
  272.     0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  273.     80,8,    /* hit box width and height */
  274.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  275.     0,    /* each bit mutually-excludes a same-level Item */
  276.     (APTR)&IText7,  /* Item render  (IntuiText or Image or NULL) */
  277.     NULL,    /* Select render */
  278.     'A',    /* alternate command-key */
  279.     NULL,    /* SubItem list */
  280.     MENUNULL    /* filled in by Intuition for drag selections */
  281. };
  282.  
  283. struct Menu Menu1 = {
  284.     &Menu2, /* next Menu structure */
  285.     0,0,    /* XY origin of Menu hit box relative to screen TopLeft */
  286.     63,0,    /* Menu hit box width and height */
  287.     MENUENABLED,    /* Menu flags */
  288.     "Project",      /* text of Menu name */
  289.     &MenuItem6    /* MenuItem linked list pointer */
  290. };
  291.  
  292. #define MenuList1 Menu1
  293.  
  294. struct NewWindow newwindow = {
  295.     0,0,    /* window XY origin relative to TopLeft of screen */
  296.     640,200,    /* window width and height */
  297.     0,1,    /* detail and block pens */
  298.     MOUSEBUTTONS+GADGETDOWN+GADGETUP+MENUPICK+CLOSEWINDOW,    /* IDCMP flags */
  299.     WINDOWCLOSE+ACTIVATE+SMART_REFRESH,   /* other window flags */
  300.     &W_Up,    /* first gadget in gadget list */
  301.     NULL,    /* custom CHECKMARK imagery */
  302.     NULL,    /* window title */
  303.     NULL,    /* custom screen pointer */
  304.     NULL,    /* custom bitmap */
  305.     -1,-1,    /* minimum width and height */
  306.     -1,-1,    /* maximum width and height */
  307.     CUSTOMSCREEN    /* destination screen type */
  308. };
  309.  
  310. struct Gadget R_StyleDown = {
  311.     NULL,    /* next gadget */
  312.     297,55, /* origin XY of hit box relative to window TopLeft */
  313.     18,9,    /* hit box width and height */
  314.     GADGIMAGE+GADGHNONE,      /* gadget flags */
  315.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  316.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  317.     (APTR)&GadgetDown,  /* gadget border or image to be rendered */
  318.     NULL,    /* alternate imagery for selection */
  319.     NULL,    /* first IntuiText structure */
  320.     NULL,    /* gadget mutual-exclude long word */
  321.     NULL,    /* SpecialInfo structure */
  322.     9,     /* user-definable data */
  323.     NULL    /* pointer to user-definable data */
  324. };
  325.  
  326. struct PropInfo R_StyleSInfo = {
  327.     AUTOKNOB+FREEVERT,    /* PropInfo flags */
  328.     -1,-1,    /* horizontal and vertical pot values */
  329.     -1,-1,    /* horizontal and vertical body values */
  330. };
  331.  
  332. struct Image Image5 = {
  333.     0,0,    /* XY origin relative to container TopLeft */
  334.     8,37,    /* Image width and height in pixels */
  335.     0,    /* number of bitplanes in Image */
  336.     NULL,    /* pointer to ImageData */
  337.     0x0000,0x0000,    /* PlanePick and PlaneOnOff */
  338.     NULL    /* next Image structure */
  339. };
  340.  
  341. struct Gadget R_Style = {
  342.     &R_StyleDown,    /* next gadget */
  343.     297,14, /* origin XY of hit box relative to window TopLeft */
  344.     16,41,    /* hit box width and height */
  345.     GADGHNONE,   /* gadget flags */
  346.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  347.     PROPGADGET+REQGADGET,    /* gadget type flags */
  348.     (APTR)&Image5,  /* gadget border or image to be rendered */
  349.     NULL,    /* alternate imagery for selection */
  350.     NULL,    /* first IntuiText structure */
  351.     NULL,    /* gadget mutual-exclude long word */
  352.     (APTR)&R_StyleSInfo,    /* SpecialInfo structure */
  353.     8,     /* user-definable data */
  354.     NULL    /* pointer to user-definable data */
  355. };
  356.  
  357. struct Gadget R_StyleUp = {
  358.     &R_Style,    /* next gadget */
  359.     297,5,    /* origin XY of hit box relative to window TopLeft */
  360.     18,9,    /* hit box width and height */
  361.     GADGIMAGE+GADGHNONE,      /* gadget flags */
  362.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  363.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  364.     (APTR)&GadgetUp,  /* gadget border or image to be rendered */
  365.     NULL,    /* alternate imagery for selection */
  366.     NULL,    /* first IntuiText structure */
  367.     NULL,    /* gadget mutual-exclude long word */
  368.     NULL,    /* SpecialInfo structure */
  369.     7,     /* user-definable data */
  370.     NULL    /* pointer to user-definable data */
  371. };
  372.  
  373. SHORT BorderVectors1[] = {
  374.     0,0,
  375.     60,0,
  376.     60,16,
  377.     0,16,
  378.     0,0
  379. };
  380. struct Border Border1 = {
  381.     -1,-1,    /* XY origin relative to container TopLeft */
  382.     1,0,JAM1,    /* front pen, back pen and drawmode */
  383.     5,    /* number of XY vectors */
  384.     BorderVectors1, /* pointer to XY vectors */
  385.     NULL    /* next border in list */
  386. };
  387.  
  388. struct IntuiText IText8 = {
  389.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  390.     6,4,    /* XY origin relative to container TopLeft */
  391.     NULL,    /* font pointer or NULL for default */
  392.     "Cancel",       /* pointer to text */
  393.     NULL    /* next IntuiText structure */
  394. };
  395.  
  396. struct Gadget R_Cancel = {
  397.     &R_StyleUp,    /* next gadget */
  398.     194,74, /* origin XY of hit box relative to window TopLeft */
  399.     59,15,    /* hit box width and height */
  400.     GADGHCOMP,   /* gadget flags */
  401.     RELVERIFY+ENDGADGET,    /* activation flags */
  402.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  403.     (APTR)&Border1, /* gadget border or image to be rendered */
  404.     NULL,    /* alternate imagery for selection */
  405.     &IText8,    /* first IntuiText structure */
  406.     NULL,    /* gadget mutual-exclude long word */
  407.     NULL,    /* SpecialInfo structure */
  408.     102,    /* user-definable data */
  409.     NULL    /* pointer to user-definable data */
  410. };
  411.  
  412. SHORT BorderVectors2[] = {
  413.     0,0,
  414.     60,0,
  415.     60,16,
  416.     0,16,
  417.     0,0
  418. };
  419. struct Border Border2 = {
  420.     -1,-1,    /* XY origin relative to container TopLeft */
  421.     1,0,JAM1,    /* front pen, back pen and drawmode */
  422.     5,    /* number of XY vectors */
  423.     BorderVectors2, /* pointer to XY vectors */
  424.     NULL    /* next border in list */
  425. };
  426.  
  427. struct IntuiText IText9 = {
  428.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  429.     20,4,    /* XY origin relative to container TopLeft */
  430.     NULL,    /* font pointer or NULL for default */
  431.     "OK",   /* pointer to text */
  432.     NULL    /* next IntuiText structure */
  433. };
  434.  
  435. struct Gadget R_OK = {
  436.     &R_Cancel,    /* next gadget */
  437.     67,74,    /* origin XY of hit box relative to window TopLeft */
  438.     59,15,    /* hit box width and height */
  439.     GADGHCOMP,   /* gadget flags */
  440.     RELVERIFY+ENDGADGET,    /* activation flags */
  441.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  442.     (APTR)&Border2, /* gadget border or image to be rendered */
  443.     NULL,    /* alternate imagery for selection */
  444.     &IText9,    /* first IntuiText structure */
  445.     NULL,    /* gadget mutual-exclude long word */
  446.     NULL,    /* SpecialInfo structure */
  447.     101,    /* user-definable data */
  448.     NULL    /* pointer to user-definable data */
  449. };
  450.  
  451. struct Gadget R_SizeDown = {
  452.     &R_OK,    /* next gadget */
  453.     173,55, /* origin XY of hit box relative to window TopLeft */
  454.     18,9,    /* hit box width and height */
  455.     GADGIMAGE+GADGHNONE,      /* gadget flags */
  456.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  457.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  458.     (APTR)&GadgetDown,  /* gadget border or image to be rendered */
  459.     NULL,    /* alternate imagery for selection */
  460.     NULL,    /* first IntuiText structure */
  461.     NULL,    /* gadget mutual-exclude long word */
  462.     NULL,    /* SpecialInfo structure */
  463.     6,     /* user-definable data */
  464.     NULL    /* pointer to user-definable data */
  465. };
  466.  
  467. struct PropInfo R_SizeSInfo = {
  468.     AUTOKNOB+FREEVERT,    /* PropInfo flags */
  469.     -1,-1,    /* horizontal and vertical pot values */
  470.     -1,-1,    /* horizontal and vertical body values */
  471. };
  472.  
  473. struct Image Image8 = {
  474.     0,0,    /* XY origin relative to container TopLeft */
  475.     8,37,    /* Image width and height in pixels */
  476.     0,    /* number of bitplanes in Image */
  477.     NULL,    /* pointer to ImageData */
  478.     0x0000,0x0000,    /* PlanePick and PlaneOnOff */
  479.     NULL    /* next Image structure */
  480. };
  481.  
  482. struct Gadget R_Size = {
  483.     &R_SizeDown,    /* next gadget */
  484.     173,14, /* origin XY of hit box relative to window TopLeft */
  485.     16,41,    /* hit box width and height */
  486.     GADGHNONE,   /* gadget flags */
  487.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  488.     PROPGADGET+REQGADGET,    /* gadget type flags */
  489.     (APTR)&Image8,  /* gadget border or image to be rendered */
  490.     NULL,    /* alternate imagery for selection */
  491.     NULL,    /* first IntuiText structure */
  492.     NULL,    /* gadget mutual-exclude long word */
  493.     (APTR)&R_SizeSInfo,     /* SpecialInfo structure */
  494.     5,     /* user-definable data */
  495.     NULL    /* pointer to user-definable data */
  496. };
  497.  
  498. struct Gadget R_SizeUp = {
  499.     &R_Size,    /* next gadget */
  500.     173,5,    /* origin XY of hit box relative to window TopLeft */
  501.     18,9,    /* hit box width and height */
  502.     GADGIMAGE+GADGHNONE,      /* gadget flags */
  503.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  504.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  505.     (APTR)&GadgetUp,  /* gadget border or image to be rendered */
  506.     NULL,    /* alternate imagery for selection */
  507.     NULL,    /* first IntuiText structure */
  508.     NULL,    /* gadget mutual-exclude long word */
  509.     NULL,    /* SpecialInfo structure */
  510.     4,     /* user-definable data */
  511.     NULL    /* pointer to user-definable data */
  512. };
  513.  
  514. struct PropInfo R_FontSInfo = {
  515.     AUTOKNOB+FREEVERT,    /* PropInfo flags */
  516.     -1,-1,    /* horizontal and vertical pot values */
  517.     -1,-1,    /* horizontal and vertical body values */
  518. };
  519.  
  520. struct Image Image10 = {
  521.     0,0,    /* XY origin relative to container TopLeft */
  522.     8,37,    /* Image width and height in pixels */
  523.     0,    /* number of bitplanes in Image */
  524.     NULL,    /* pointer to ImageData */
  525.     0x0000,0x0000,    /* PlanePick and PlaneOnOff */
  526.     NULL    /* next Image structure */
  527. };
  528.  
  529. struct Gadget R_Font = {
  530.     &R_SizeUp,    /* next gadget */
  531.     121,14, /* origin XY of hit box relative to window TopLeft */
  532.     16,41,    /* hit box width and height */
  533.     GADGHNONE,   /* gadget flags */
  534.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  535.     PROPGADGET+REQGADGET,    /* gadget type flags */
  536.     (APTR)&Image10, /* gadget border or image to be rendered */
  537.     NULL,    /* alternate imagery for selection */
  538.     NULL,    /* first IntuiText structure */
  539.     NULL,    /* gadget mutual-exclude long word */
  540.     (APTR)&R_FontSInfo,     /* SpecialInfo structure */
  541.     2,     /* user-definable data */
  542.     NULL    /* pointer to user-definable data */
  543. };
  544.  
  545. struct Gadget R_FontDown = {
  546.     &R_Font,    /* next gadget */
  547.     121,55, /* origin XY of hit box relative to window TopLeft */
  548.     18,9,    /* hit box width and height */
  549.     GADGIMAGE+GADGHNONE,      /* gadget flags */
  550.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  551.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  552.     (APTR)&GadgetDown, /* gadget border or image to be rendered */
  553.     NULL,    /* alternate imagery for selection */
  554.     NULL,    /* first IntuiText structure */
  555.     NULL,    /* gadget mutual-exclude long word */
  556.     NULL,    /* SpecialInfo structure */
  557.     3,     /* user-definable data */
  558.     NULL    /* pointer to user-definable data */
  559. };
  560.  
  561. struct Gadget R_FontUp = {
  562.     &R_FontDown,    /* next gadget */
  563.     121,5,    /* origin XY of hit box relative to window TopLeft */
  564.     18,9,    /* hit box width and height */
  565.     GADGIMAGE+GADGHNONE,      /* gadget flags */
  566.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  567.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  568.     (APTR)&GadgetUp, /* gadget border or image to be rendered */
  569.     NULL,    /* alternate imagery for selection */
  570.     NULL,    /* first IntuiText structure */
  571.     NULL,    /* gadget mutual-exclude long word */
  572.     NULL,    /* SpecialInfo structure */
  573.     1,     /* user-definable data */
  574.     NULL    /* pointer to user-definable data */
  575. };
  576.  
  577. #define GadgetList2 R_FontUp
  578.  
  579. SHORT req1bordervectors[] = {
  580.     0,0,
  581.     319,0,
  582.     319,99,
  583.     0,99,
  584.     0,0
  585. };
  586. struct Border req1border = {
  587.     0, 0,  /* XY origin relative to container TopLeft */
  588.     1,0,JAM1,    /* front pen, back pen and drawmode */
  589.     5,    /* number of XY vectors */
  590.     req1bordervectors, /* pointer to XY vectors */
  591.     NULL    /* next border in list */
  592. };
  593.  
  594. struct Requester requester1 = {
  595.     NULL,    /* previous requester (filled in by Intuition) */
  596.     160,50, /* requester XY origin relative to TopLeft of window */
  597.     320,100,    /* requester width and height */
  598.     0,0,    /* relative to these mouse offsets if POINTREL is set */
  599.     &GadgetList2,    /* gadget list */
  600.     &req1border,   /* box's border */
  601.     NULL,    /* requester text */
  602.     NOISYREQ,   /* requester flags */
  603.     0,    /* back-plane fill pen */
  604.     NULL,    /* leave these alone */
  605.     NULL,    /* custom bitmap if PREDRAWN is set */
  606.     NULL    /* leave this alone */
  607. };
  608.  
  609. SHORT BorderVectors3[] = {
  610.     0,0,
  611.     99,0,
  612.     99,25,
  613.     0,25,
  614.     0,0
  615. };
  616. struct Border Border3 = {
  617.     -1,-1,    /* XY origin relative to container TopLeft */
  618.     1,0,JAM1,    /* front pen, back pen and drawmode */
  619.     5,    /* number of XY vectors */
  620.     BorderVectors3, /* pointer to XY vectors */
  621.     NULL    /* next border in list */
  622. };
  623.  
  624. struct IntuiText IText10 = {
  625.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  626.     36,8,    /* XY origin relative to container TopLeft */
  627.     NULL,    /* font pointer or NULL for default */
  628.     "DUH",  /* pointer to text */
  629.     NULL    /* next IntuiText structure */
  630. };
  631.  
  632. struct Gadget Gadget5 = {
  633.     NULL,    /* next gadget */
  634.     55,65,    /* origin XY of hit box relative to window TopLeft */
  635.     98,24,    /* hit box width and height */
  636.     GADGHCOMP,   /* gadget flags */
  637.     RELVERIFY+ENDGADGET,      /* activation flags */
  638.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  639.     (APTR)&Border3, /* gadget border or image to be rendered */
  640.     NULL,    /* alternate imagery for selection */
  641.     &IText10,    /* first IntuiText structure */
  642.     NULL,    /* gadget mutual-exclude long word */
  643.     NULL,    /* SpecialInfo structure */
  644.     NULL,    /* user-definable data */
  645.     NULL    /* pointer to user-definable data */
  646. };
  647.  
  648. #define GadgetList3 Gadget5
  649.  
  650. struct IntuiText IText15 = {
  651.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  652.     80,43,    /* XY origin relative to container TopLeft */
  653.     NULL,    /* font pointer or NULL for default */
  654.     "fonts.",       /* pointer to text */
  655.     NULL    /* next IntuiText structure */
  656. };
  657.  
  658. struct IntuiText IText14 = {
  659.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  660.     20,34,    /* XY origin relative to container TopLeft */
  661.     NULL,    /* font pointer or NULL for default */
  662.     "This program displays",        /* pointer to text */
  663.     &IText15    /* next IntuiText structure */
  664. };
  665.  
  666. struct IntuiText IText13 = {
  667.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  668.     8,19,    /* XY origin relative to container TopLeft */
  669.     NULL,    /* font pointer or NULL for default */
  670.     "Last revision - 02/11/89",     /* pointer to text */
  671.     &IText14    /* next IntuiText structure */
  672. };
  673.  
  674. struct IntuiText IText12 = {
  675.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  676.     20,10,    /* XY origin relative to container TopLeft */
  677.     NULL,    /* font pointer or NULL for default */
  678.     "by Arthur Johnson Jr.",        /* pointer to text */
  679.     &IText13    /* next IntuiText structure */
  680. };
  681.  
  682. struct IntuiText IText11 = {
  683.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  684.     56,2,    /* XY origin relative to container TopLeft */
  685.     NULL,    /* font pointer or NULL for default */
  686.     "ShowFont 3.3", /* pointer to text */
  687.     &IText12    /* next IntuiText structure */
  688. };
  689.  
  690. #define IntuiTextList3 IText11
  691.  
  692. SHORT req2bordervectors[] = {
  693.     0,0,
  694.     207,0,
  695.     207,99,
  696.     0,99,
  697.     0,0
  698. };
  699. struct Border req2border = {
  700.     0, 0,  /* XY origin relative to container TopLeft */
  701.     1,0,JAM1,    /* front pen, back pen and drawmode */
  702.     5,    /* number of XY vectors */
  703.     req2bordervectors, /* pointer to XY vectors */
  704.     NULL    /* next border in list */
  705. };
  706.  
  707. struct Requester requester2 = {
  708.     NULL,    /* previous requester (filled in by Intuition) */
  709.     216,50, /* requester XY origin relative to TopLeft of window */
  710.     208,100,    /* requester width and height */
  711.     0,0,    /* relative to these mouse offsets if POINTREL is set */
  712.     &GadgetList3,    /* gadget list */
  713.     &req2border,   /* box's border */
  714.     &IntuiTextList3,    /* requester text */
  715.     NULL,    /* requester flags */
  716.     0,    /* back-plane fill pen */
  717.     NULL,    /* leave these alone */
  718.     NULL,    /* custom bitmap if PREDRAWN is set */
  719.     NULL    /* leave this alone */
  720. };
  721.  
  722. SHORT OutlineVectors3[] = {
  723.     0,0,
  724.     100,0,
  725.     100,58,
  726.     0,58,
  727.     0,0
  728. };
  729. struct Border Outline3 = {
  730.     194,5,    /* XY origin relative to container TopLeft */
  731.     1,0,JAM1,    /* front pen, back pen and drawmode */
  732.     5,    /* number of XY vectors */
  733.     OutlineVectors3, /* pointer to XY vectors */
  734.     NULL    /* next border in list */
  735. };
  736.  
  737. SHORT OutlineVectors2[] = {
  738.     0,0,
  739.     27,0,
  740.     27,58,
  741.     0,58,
  742.     0,0
  743. };
  744. struct Border Outline2 = {
  745.     143,5,    /* XY origin relative to container TopLeft */
  746.     1,0,JAM1,    /* front pen, back pen and drawmode */
  747.     5,    /* number of XY vectors */
  748.     OutlineVectors2, /* pointer to XY vectors */
  749.     &Outline3     /* next border in list */
  750. };
  751.  
  752. SHORT OutlineVectors1[] = {
  753.     0,0,
  754.     108,0,
  755.     108,58,
  756.     0,58,
  757.     0,0
  758. };
  759. struct Border Outline1 = {
  760.     10,5,    /* XY origin relative to container TopLeft */
  761.     1,0,JAM1,    /* front pen, back pen and drawmode */
  762.     5,    /* number of XY vectors */
  763.     OutlineVectors1, /* pointer to XY vectors */
  764.     &Outline2     /* next border in list */
  765. };
  766.  
  767. SHORT BorderVectors4[] = {
  768.     0,0,
  769.     41,0,
  770.     41,12,
  771.     0,12,
  772.     0,0
  773. };
  774. struct Border Border4 = {
  775.     -1,-1,    /* XY origin relative to container TopLeft */
  776.     1,0,JAM1,    /* front pen, back pen and drawmode */
  777.     5,    /* number of XY vectors */
  778.     BorderVectors4, /* pointer to XY vectors */
  779.     NULL    /* next border in list */
  780. };
  781.  
  782. struct IntuiText IText16 = {
  783.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  784.     12,2,    /* XY origin relative to container TopLeft */
  785.     NULL,    /* font pointer or NULL for default */
  786.     "OK",   /* pointer to text */
  787.     NULL    /* next IntuiText structure */
  788. };
  789.  
  790. struct Gadget Gadget22 = {
  791.     NULL,    /* next gadget */
  792.     60,35,    /* origin XY of hit box relative to window TopLeft */
  793.     40,11,    /* hit box width and height */
  794.     GADGHCOMP,   /* gadget flags */
  795.     RELVERIFY+ENDGADGET,    /* activation flags */
  796.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  797.     (APTR)&Border4, /* gadget border or image to be rendered */
  798.     NULL,    /* alternate imagery for selection */
  799.     &IText16,    /* first IntuiText structure */
  800.     NULL,    /* gadget mutual-exclude long word */
  801.     NULL,    /* SpecialInfo structure */
  802.     NULL,    /* user-definable data */
  803.     NULL    /* pointer to user-definable data */
  804. };
  805.  
  806. #define GadgetList4 Gadget22
  807.  
  808. struct IntuiText IText19 = {
  809.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  810.     2,22,  /* XY origin relative to container TopLeft */
  811.     NULL,    /* font pointer or NULL for default */
  812.     NULL,  /* pointer to text */
  813.     NULL    /* next IntuiText structure */
  814. };
  815.  
  816. struct IntuiText IText18 = {
  817.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  818.     16,12,    /* XY origin relative to container TopLeft */
  819.     NULL,    /* font pointer or NULL for default */
  820.     "character, press",     /* pointer to text */
  821.     &IText19    /* next IntuiText structure */
  822. };
  823.  
  824. struct IntuiText IText17 = {
  825.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  826.     37,2,    /* XY origin relative to container TopLeft */
  827.     NULL,    /* font pointer or NULL for default */
  828.     "To get that",  /* pointer to text */
  829.     &IText18    /* next IntuiText structure */
  830. };
  831.  
  832. #define IntuiTextList4 IText17
  833.  
  834. SHORT BorderVectors5[] = {
  835.     0,0,
  836.     159,0,
  837.     159,49,
  838.     0,49,
  839.     0,0
  840. };
  841. struct Border Border5 = {
  842.     0,0,  /* XY origin relative to container TopLeft */
  843.     1,0,JAM1,    /* front pen, back pen and drawmode */
  844.     5,    /* number of XY vectors */
  845.     BorderVectors5, /* pointer to XY vectors */
  846.     NULL    /* next border in list */
  847. };
  848.  
  849. struct Requester RequesterStructure4 = {
  850.     NULL,    /* previous requester (filled in by Intuition) */
  851.     240,75, /* requester XY origin relative to TopLeft of window */
  852.     160,50, /* requester width and height */
  853.     0,0,    /* relative to these mouse offsets if POINTREL is set */
  854.     &GadgetList4,    /* gadget list */
  855.     &Border5,   /* box's border */
  856.     &IntuiTextList4,    /* requester text */
  857.     NULL,    /* requester flags */
  858.     0,    /* back-plane fill pen */
  859.     NULL,    /* leave these alone */
  860.     NULL,    /* custom bitmap if PREDRAWN is set */
  861.     NULL    /* leave this alone */
  862. };
  863.